package cn.imu.appdevexperiment2020.work02;

import android.os.Bundle;

import cn.imu.appdevexperiment2020.R;
import cn.imu.appdevexperiment2020.base.BaseActivity;
import cn.imu.appdevexperiment2020.utils.ActivityUtil;

public class SecondActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_second_realtive);//相对布局实现的
        setContentView(R.layout.activity_second);//线性布局
        findViewById(R.id.login).setOnClickListener(view -> {
            ActivityUtil.getInstance().goActivity(this, SecondViewActivity.class);
        });
    }
}